/*
 * GnomePrinting.cs - Wordtrainer
 * 
 * Copyright (C) 1998-2007 Markus Kilås
 *               
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 *
 * Authors:
 *   Markus Kilås <markus@markuspage.com>
 * 
 */

using System;
//using Gnome;

namespace WtSharp
{
	
	
	public class GnomePrinting : Printing
	{
		//private WtDocument m_doc;
		
		public GnomePrinting()
		{
		}
		
		public void DoPrint(WtDocument document, PageSettings settings, Gtk.Window parent)
		{
			//this.m_doc = document;
			/*Gnome.PrintJob pj = new Gnome.PrintJob (Gnome.PrintConfig.Default ());
			Gnome.PrintDialog dialog = new Gnome.PrintDialog (pj, "Print words", 0);
			int response = dialog.Run ();
			Console.WriteLine ("response: " + response);

			if (response == (int) Gnome.PrintButtons.Cancel)
			{
				Console.WriteLine ("Canceled");
				dialog.Hide ();
				dialog.Dispose ();
				return;
			}

			Gnome.PrintContext ctx = pj.Context;
			MyPrint (ctx); 

			pj.Close ();

			switch (response)
			{
			case (int) Gnome.PrintButtons.Print: 
				pj.Print (); 
				break;
			case (int) Gnome.PrintButtons.Preview:
				new Gnome.PrintJobPreview (pj, "Print words").Show ();
				break;
			}

			dialog.Hide ();
			dialog.Dispose ();*/
		}
		
		/*private void MyPrint (Gnome.PrintContext gpc)
		{
			Print.Beginpage (gpc, "First page");
			PrintHeader(gpc, 1, 1);
			Print.Moveto (gpc, 1, 700);
			Print.Show (gpc, "The text is here...");
			
			gpc.RectStroked(200, 200, 300, 300);			
			
			
			
			Print.Showpage (gpc);
		}
		
		private void PrintHeader(PrintContext gpc, int page, int numPages)
		{
			Print.Moveto(gpc, 1, 500);
			Print.Show(gpc, "The_filename_is_here.wt2");
		}*/
	}
}
